package org.linuxsogood.boot.queue;

/**
 * @author liu.hongwei
 * @since 2020/8/24 19:02
 */
public abstract class Action {

    /**
     * 第几秒开始执行
     */
    int startSeconds = 0;

    public Action(int startSeconds) {
        this.startSeconds = startSeconds;
    }

    public int getStartSeconds() {
        return startSeconds;
    }

    public void setStartSeconds(int startSeconds) {
        this.startSeconds = startSeconds;
    }

    /**
     * 执行动作
     */
    public abstract void execute();

}
